

//
//  Btn.m
//  小碗旅行
//
//  Created by wyzcWLB on 16/9/26.
//  Copyright © 2016年 wyzcWLB. All rights reserved.
//

#import "Btn.h"

@implementation Btn

//button 内部有 imageView label
//修改内部的布局
-(void)layoutSubviews{
    //必须调用
    [super layoutSubviews];
    // x  y
    self.imageView.center = CGPointMake(self.frame.size.width*0.5, self.frame.size.height*(1.0/3));
    [self.titleLabel sizeToFit];
    self.titleLabel.center = CGPointMake(self.frame.size.width*0.5, CGRectGetMaxY(self.imageView.frame)+15
                                         );
}

@end
